using System.Configuration;

namespace Lync.Widget.Library.Configuration
{
    public class ActivedirectoryMappingConfigurationElement : ConfigurationElement, IActiveDirectoryMap
    {
        [ConfigurationProperty("id", IsKey = true, IsRequired = true)]
        public string Id
        {
            get { return (string)base["id"]; }
            set { base["id"] = value; }
        }

        [ConfigurationProperty("name", IsRequired = true)]
        public string Name
        {
            get { return (string)base["name"]; }
            set { base["name"] = value; }
        }

        [ConfigurationProperty("querystringparam", IsRequired = false)]
        public string QuerystringParam
        {
            get { return (string)base["querystringparam"]; }
            set { base["querystringparam"] = value; }
        }

        [ConfigurationProperty("wildcard", IsRequired = false, DefaultValue = "all")]
        public string Wildcard
        {
            get { return (string)base["wildcard"]; }
            set { base["wildcard"] = value; }
        }
    }
}